// 挂载函数
import {assignPrototype} from '@/utils'
// 导入原型拓展
import CreepActcionExtension from './action'
import ConvenientExtension from './convenient'
import CreepBaseExtension from './base'
import CreepGeneralAdvancedExtension from './function'
import CreepWorkExtension from './HandMisson/work'
import CreepManage from './HandMisson/manage'
import CreepTransport from './HandMisson/transport'
import CreepAction from './HandMisson/action'
import CreepWar from './HandMisson/war'

export default ()=> {
    // 先挂载行为的原型拓展
    assignPrototype(Creep,CreepActcionExtension)
    assignPrototype(Creep,ConvenientExtension)
    // 先挂载基本的原型拓展
    assignPrototype(Creep,CreepBaseExtension)
    // 再挂载稍微进阶的原型拓展
    assignPrototype(Creep,CreepGeneralAdvancedExtension)

    // 挂载任务控制的爬虫扩展
    assignPrototype(Creep,CreepManage)
    assignPrototype(Creep,CreepTransport)
    assignPrototype(Creep,CreepWorkExtension)
    assignPrototype(Creep,CreepAction)
    assignPrototype(Creep,CreepWar)
}